package com.wfcm.service;

import com.wfcm.entity.WfCollectionEntity;
import com.wfcm.entity.WfShoppingCartEntity;

import java.util.List;
import java.util.Map;

/**
 * 购物车管理
 * 
 * @author xlf
 * @email xlfbe696@gmail.com
 * @date 2018-03-11 15:08:07
 */
public interface WfCollectionService {
	
	WfCollectionEntity queryObject(Integer id);
	
	WfCollectionEntity queryCollection(Map<String, Object> map);

	List<WfCollectionEntity> queryCollectionList(Map<String, Object> map);
	
	//查询购物车中数据
	List<WfCollectionEntity> queryList(Map<String, Object> map);
	
	//查询收藏中的课程信息
	List<WfCollectionEntity> queryCourseList(Map<String, Object> map);
	//查询收藏中的章节信息
	List<WfCollectionEntity> queryChapterList(Map<String, Object> map);
	//查询收藏中的课程包信息
	List<WfCollectionEntity> queryVipCardList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(WfCollectionEntity wfCollection);
	
	void update(WfCollectionEntity wfCollection);
	
	void delete(Map<String, Object> map);
	
	void deleteBatch(Integer[] ids);
}
